<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    var obj = {
        name:"达姆",
        son:"小达姆"
    }
    //禁止对象扩展属性
    Object.preventExtensions(obj)
    obj.wife = "冬雨";

    //禁止对象扩展属性的前提上 原有的属性还不能动...????
    obj.son="xxx";
    delete obj.name
    console.log(obj);
</script>
</html>